using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Xeralabs.GDESK.Test.User;

namespace Xeralabs.GDESK.Test
{
    public partial class TestForm : Form
    {
        private Test01Form test01;
        private Test02Form test02;
        
        public TestForm()
        {
            InitializeComponent();
        }

        private void TestButton01_Click(object sender, EventArgs e)
        {
            test01 = new Test01Form();

            test01.Show(this);
            this.Hide();
        }
        private void _testButton02_Click(object sender, EventArgs e)
        {
            test02 = new Test02Form();

            test02.Show(this);
            this.Hide();
        }

        private void ExitButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        protected override void OnClosing(CancelEventArgs e)
        {
            if (test01 != null)
                test01.Dispose();
            if (test02 != null)
                test02.Dispose();

            test01 = null;
            test02 = null;

            base.OnClosing(e);
        }
    }
}